<extend name="Layout/ins_home" />
<block name="content">
	<style>
		.ibox-title {
			height: 48px;
		}
		.ibox h5 {
			display: inline-block;
			float: left;
			font-size: 18px;
		}
		.ibox {
			margin-top: 20px;
			height: 365px;
			margin-bottom: 0px;
			overflow: hidden;
		}
		.ibox-tools {
			float: right;
		}
		.ibox-content {
			padding: 0px;
		}
		.layui-tab li {
			z-index: 3;
		}
		.layui-tab-title {
			margin-top: 2px;
		}
		.layui-tab .layui-this {
			background: #FFFFFF;
		}
		.ul-table ul {
			border: 0px;
		}
		.ul-table li {
			border-top: 0px;
			border-bottom: 1px dotted #E2E2E2;
		}
		.layui-layer1{
			width:100%;
		}
	</style>
	<div class="index-body">
		<div class="frame" id="sortable-view">
			<div class="bit-2" sort="1">
				<div class="ibox layui-tab">
					<div class="ibox-title">
						<h5>邮件</h5>
						<div class="ibox-tools">
							<ul class="layui-tab-title">
								<li class="layui-this">
									最新
								</li>
								<li>
									未读
								</li>
							</ul>
						</div>
					</div>
					<div class="ibox-content layui-tab-content">
						<div class="layui-tab-item layui-show ul-table">
							<ul>
								<volist name="new_mail_list" id="vo">
									<li>
										<span class="col-16 grow-1 autocut"><a href="{:U('mail/read','id='.$vo['id'])}&return_url=Mail/folder?fid=inbox" >{$vo.name|default="无标题"}</a> </span>
										<span class="col-9 text-right">{$vo.create_time|to_date='Y-m-d'}</span>
									</li>
								</volist>
							</ul>
						</div>
						<div class="layui-tab-item ul-table">
							<ul>
								<volist name="unread_mail_list" id="vo">
									<li>
										<span class="col-16 grow-1 autocut"> <a href="{:U('mail/read','id='.$vo['id'])}&return_url=Mail/folder?fid=inbox" node="85" return_url="{:U('mail/folder/','fid=inbox')}" onclick="click_home_list(this)">{$vo.name|default="无标题"}</a> </span>
										<span class="col-9 text-right">{$vo.create_time|to_date='Y-m-d '}</span>
									</li>
								</volist>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="bit-2" sort="2">
				<div class="ibox layui-tab">
					<div class="ibox-title">
						<h5>审批</h5>
						<div class="ibox-tools">
							<div class="ibox-tools">
								<ul class="layui-tab-title">
									<li class="layui-this">
										待办
									</li>
									<li>
										已提交
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div class="layui-tab-content ibox-content">
						<div class="layui-tab-item layui-show ul-table">
							<ul>
								<volist name="todo_flow_list" id="vo">
									<li>
										<span class="col-16 grow-1 autocut"> <a href="{:U('flow/read','id='.$vo['id'].'&fid=confirm')}&return_url=Flow/folder?fid=confirm" >{$vo.name}</a> </span>
										<span class="col-9 text-right">{$vo.create_time|to_date='Y-m-d'}</span>
									</li>
								</volist>
							</ul>
						</div>
						<div class="layui-tab-item ul-table">
							<ul>
								<volist name="submit_flow_list" id="vo">
									<li>
										<span class="col-16 grow-1 autocut"> <a href="{:U('flow/read','id='.$vo['id'].'&fid=submit')}&return_url=Flow/folder?fid=submit" >{$vo.name}</a> </span>
										<span class="col-9 text-right">{$vo.create_time|to_date='Y-m-d'}</span>
									</li>
								</volist>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="bit-2" sort="3">
				<div class="ibox">
					<div class="ibox-title">
						<h5>信息</h5>
					</div>
					<div class="ibox-content">
						<div class="ul-table">
							<ul>
								<volist name="info_list" id="vo">
									<li>
										<span class="col-16 grow-1 autocut"><a href="{:U('info/read','id='.$vo['id'])}&return_url=Info/index" >【{$vo.folder_name}】{$vo.name}</a> </span>
										<span class="col-9 text-right">{$vo.create_time|to_date='Y-m-d '}</span>
									</li>
								</volist>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="bit-2" sort="4">
				<div class="ibox layui-tab" >
					<div class="ibox-title">
						<h5>日程</h5>
						<div class="ibox-tools">
							<ul class="layui-tab-title">
								<li class="layui-this">
									待办
								</li>
								<li>
									日程
								</li>
							</ul>
						</div>
					</div>
					<div class="layui-tab-content ibox-content">
						<div class="layui-tab-item layui-show">
							<div id="calendar-todo" class="ul-table">
								<ul>
									<volist name="todo_list" id="vo">
										<li>
											<span class="col-16 grow-1 autocut"><a href="{:U('todo/edit','id='.$vo['id'])}&return_url=Todo/index">{$vo.name}</a> </span>
											<span class="col-9 text-right">{$vo.end_date}</span>
										</li>
									</volist>
								</ul>
							</div>
						</div>
						<div class="layui-tab-item">
							<div id="calendar-schedule" class="ul-table">
								<ul>
									<volist name="schedule_list" id="vo">
										<li>
											<span class="col-16 grow-1 autocut"><a href="{:U('schedule/read2','id='.$vo['id'])}&return_url=Schedule/index" >{$vo.name}</a></span>
											<span class="col-9 text-right">{$vo.start_time|substr=0,10}</span>
										</li>
									</volist>
								</ul>
							</div>
						</div>

					</div>
				</div>
			</div>
		</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use(['global', 'element'], function() {

		});
	</script>
</block>